//
//  MyProcessView.m
//  X-Touch2
//
//  Created by shengchao yang on 12-4-18.
//  Copyright (c) 2012年 foxhis. All rights reserved.
//

#import "MyProcessView.h"

@interface MyProcessView ()

@end

@implementation MyProcessView
@synthesize indicator;
@synthesize lblMessage;

- (id)initWithNibName:(NSString *)nibNameOrNil withMessage:(NSString *)message{
    _message = message;
    self = [super initWithNibName:nibNameOrNil bundle:nil];
    if (self) {
    }
    return self;
}
-(void) startProcessing{
    lblMessage.text = _message;
    [indicator startAnimating]; 
}

//关闭窗口
-(void) closeMyProcessView{
    NSString *SysMsg = [NSString stringWithFormat:@"SysMsg_MessageBoxBaseView_%@", self.nibName];
    postN(SysMsg);//关闭弹出窗口
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [self setIndicator:nil];
    [self setLblMessage:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
	return YES;
}

- (void)dealloc {
    [indicator release];
    [lblMessage release];
    [super dealloc];
}
@end
